package com.sykj.bis;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;

/**
 * @ClassName User
 * @Description TODO
 * Author JiangPengCheng
 * Date 2020/7/17 11:36
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User {
    @NotNull(message = "id不能为空")
    private Integer id;
    @NotNull(message = "name不能为空")
    private String name;
    @NotNull(message = "email不能为空")
    @Email(message = "邮箱格式不正确")
    private  String email;
}
